โ– humdrum codex / glint v1.0.2
license AGPL-3.0
1.3 KB raw
id
TASK-023
title
Toggle checkbox state with a key (- [ ] <-> - [x])
status
๐ŸŸฆ Backlog
assignee
created_date
2026-06-29 21:08
updated_date
2026-06-29 21:43
labels
feature
dependencies
priority
low
ordinal
23000

Description

From TASK-008 description (deferred, not an AC there): toggle the checkbox on the current list line between [ ] and [x] with a keybind, without hand-editing the brackets. Should work whether or not the cursor is on the brackets; no-op on non-checkbox lines.

Acceptance Criteria

Implementation Notes

Scope expanded per user: toggle by (a) keybind with cursor anywhere on the line, and (b) mouse click on the checkbox glyph. Mouse handling lives in app.go (it owns tea.MouseMsg + margin/scroll->buffer mapping; see MoveToVisual); the toggle mutation itself should be an editor method (e.g. ToggleCheckbox) so it's unit-testable and undoable.